package com.lingdian.study.aop;

import java.lang.reflect.Method;

import org.springframework.aop.support.StaticMethodMatcherPointcutAdvisor;

public class StaticMethodCheckTicketAdvisor extends StaticMethodMatcherPointcutAdvisor{

	@Override
	public boolean matches(Method method, Class<?> targetClass) {
		return "takeTrain".equals(method.getName());
	}

}
